#ifndef _MISSING_WINE_H
#define _MISSING_WINE_H

#ifndef _SIZE_T_DEFINED
#ifdef _WIN64
typedef unsigned __int64 size_t;
#else
typedef unsigned int size_t;
#endif
#define _SIZE_T_DEFINED
#endif

#ifdef __cplusplus
extern "C" {
#endif

char*       _itoa(int,char*,int);
int         _memicmp(const void*,const void*,unsigned int);
int         _stricmp(const char*,const char*);

#ifdef __cplusplus
}
#endif
static inline char* itoa(int value, char* str, int radix) { return _itoa(value, str, radix); }
static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); }
static inline int stricmp(const char* s1, const char* s2) { return _stricmp(s1, s2); }

# ifdef __GNUC__
# define _alloca(x) __builtin_alloca((x))
#ifndef alloca
# define alloca(x) __builtin_alloca((x))
#endif
# endif

#endif //_MISSING_WINE_H
